﻿<UserControl x:Class="ProgrammersCalculator.View.CsvToXml"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="500"
             d:DesignWidth="600">
    <ScrollViewer Margin="10,15,10,10" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
        <Grid x:Name="LayoutRoot"
          Margin="10,15,10,10">
            <DockPanel>
                <Border DockPanel.Dock="Top"
                        Style="{DynamicResource styleContentArea}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <!-- HEADER -->
                        <Border Grid.Row="0"
                                Style="{DynamicResource styleContentAreaHeader}">
                            <Grid>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontSize="20"
                                               Padding="8"
                                               VerticalAlignment="Center"><Run Text="CSV TO Xml" /></TextBlock>
                                </StackPanel>
                            </Grid>
                        </Border>

                        <!--CONTENT AREA-->
                        <Grid Grid.Row="1">

                            <StackPanel x:Name="ContentStackPanel"
                                        Margin="20">

                                <StackPanel Margin="0">
                                    <TextBox Text="CSV,DATA "
                                             x:Name="txtInput"
                                             AcceptsReturn="True"
                                             AcceptsTab="True"
                                             Height="100" />


                                    <TextBox x:Name="txtOutput"
                                             Height="100"
                                             ScrollViewer.VerticalScrollBarVisibility="Auto" />
                                    <Button x:Name="Convert"
                                            Content="Convert"
                                            Click="Convert_Click" />

                                </StackPanel>
                            </StackPanel>
                        </Grid>
                        <Grid Grid.Row="2">
                            <StackPanel>
                                <GroupBox Header="Settings"
                                          Height="124">
                                    <Grid HorizontalAlignment="Left"
                                          Height="102"
                                          VerticalAlignment="Top"
                                          Width="542">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="12*" />
                                            <RowDefinition Height="17*" />
                                            <RowDefinition Height="22*" />
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="122*" />
                                            <ColumnDefinition Width="149*" />
                                        </Grid.ColumnDefinitions>
                                        <TextBlock Grid.Column="0"
                                                   TextWrapping="Wrap"
                                                   Text="TextBlock"
                                                    />
                                        <TextBox Grid.Column="1"
                                                   TextWrapping="Wrap"
                                                   Text="TextBlock" />

                                        <TextBlock Grid.Column="0"
                                                   Grid.Row="0"
                                                   TextWrapping="Wrap"
                                                   Text="TextBlock" />
                                        <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal">
                                            <RadioButton Content="Yes"></RadioButton>
                                            <RadioButton Content="No"></RadioButton>
                                        </StackPanel>
                                        
                                        <TextBlock Grid.Column="0"
                                                 TextWrapping="Wrap"
                                                 Grid.Row="1"
                                                 Text="First Row is Header" />
                                    </Grid>



                                </GroupBox>
                            </StackPanel>
                        </Grid>
                    </Grid>
                </Border>
            </DockPanel>
        </Grid>
    </ScrollViewer>
</UserControl>
